package com.example.zsgc.tools;

public class Singleton {

    private static Singleton singleton;

    private Singleton(){
        //放置只执行一次的业务

    }

    public static class SingletonHelper{
        private static final Singleton INSTANCE=new Singleton();
    }

    public static Singleton getInstance(){
        singleton= SingletonHelper.INSTANCE;
        return singleton;
    }
}
